#!/bin/bash
# 数据库备份脚本
BACKUP_DIR="/backups/musicdb"
DATE=$(date +%Y%m%d)
DEST="$BACKUP_DIR/backup-$DATE.sqlite"

sqlite3 /data/music.db ".backup $DEST"